package com.smarthospital.service;

import com.smarthospital.entity.im.IMMessage;
import org.springframework.data.domain.Page;

import javax.websocket.Session;
import java.util.concurrent.ConcurrentHashMap;

public interface IMMessageService {

    void onOpen(Session session);

    void onMessage(ConcurrentHashMap<String,Session> sessionPools, String message);

    Page<IMMessage> list(String orderId, Integer pageSize, Integer pageNum);

    void deleteAll();
}
